﻿namespace Xamarin.Forms.Shapes
{
    public class BezierSegment : PathSegment
    {
        public BezierSegment()
        {

        }

        public BezierSegment(Point point1, Point point2, Point point3)
        {
            Point1 = point1;
            Point2 = point2;
            Point3 = point3;
        }

        public static readonly BindableProperty Point1Property =
            BindableProperty.Create(nameof(Point1), typeof(Point), typeof(BezierSegment), new Point(0, 0));

        public static readonly BindableProperty Point2Property =
            BindableProperty.Create(nameof(Point2), typeof(Point), typeof(BezierSegment), new Point(0, 0));

        public static readonly BindableProperty Point3Property =
            BindableProperty.Create(nameof(Point3), typeof(Point), typeof(BezierSegment), new Point(0, 0));

        public Point Point1
        {
            set { SetValue(Point1Property, value); }
            get { return (Point)GetValue(Point1Property); }
        }

        public Point Point2
        {
            set { SetValue(Point2Property, value); }
            get { return (Point)GetValue(Point2Property); }
        }

        public Point Point3
        {
            set { SetValue(Point3Property, value); }
            get { return (Point)GetValue(Point3Property); }
        }
    }
}